with open("aaa.txt","r",encoding="utf-8") as r:
    a = r.readlines()

print(list(set(a)))
